<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8" import="com.fps.web.model.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri='http://www.springframework.org/tags/form'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
String name = "";
if(null != session.getAttribute("LOGIN_SYS_USER_INFO")){
    name = ((BaseUser) session.getAttribute("LOGIN_SYS_USER_INFO")).getUsername();
}else{
	name= "";
}
%>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="">
<meta name="description" content="">
<title>飞轮</title>
</head>
<!--  1、 框架标签引入区 （start）-->
<!--  1、 框架标签引入区 （end）-->
<!--  2、 CSS声明区 （start）-->
<!--  2.0、引入CSS区 （start）-->
<!--第三方CSS-->
<link href="other/bootstrap3/css/bootstrap.css" rel="stylesheet" />
<link href="other/ext6/css/theme-triton/resources/theme-triton-all.css"
	rel="stylesheet">
<!--自定义css-->
<link href="css/extcsscustom.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<link href="css/global.css" rel="stylesheet" />

<!--菜单框架引用的css-->
<link href="css/home-menu-site.css" rel="stylesheet" />
<link rel="stylesheet" href="fonts/web-icons/web-icons.min.css">
<link rel="stylesheet"
	href="js/home-menu/vendor/asscrollable/asScrollable.css">
<!--end 菜单框架引用的css-->
<!--  2.0、 引入CSS区 （end）-->
<!--  2.1、本界面CSS区 （start）-->
<style>
iframe {
	min-height: 680px;
}
</style>
<!--  2.1、 本界面CSS区 （end）-->
<!--  2、 CSS声明区 （end）-->
<!--  3、JS声明区 （start）-->
<!--  3.0、 导入外部JS区 （start）-->
<!--第三方JS-->


<!--  3.0、 导入外部JS区 （end）-->
<!--  3.1、 全局变量声明区 （start）-->
<script type="text/javascript">

</script>
<!--  3.1、 全局变量声明区 （end）-->
<!--  3.2、 初始化区 （start）-->
<script type="text/javascript">

</script>
<!--  3.2、 初始化区 （end）-->
<!--  3.3、 页面控制区 （start）-->
<script type="text/javascript">

</script>
<!--  3.3、 页面控制区 （end）-->
<!--  3.4、 事件区 （start）-->
<script type="text/javascript">


</script>
<!--  3.4、 事件区 （end）-->
<!--  3.5、 回调区 （start）-->
<script type="text/javascript">
window.onload=function(){ 

}
</script>
<!--  3.5、 回调区 （end）-->
<!--  3.6、 业务逻辑区 （start）-->
<!--  3.6、 业务逻辑区 （end）-->

<!--  3、 JS声明区 （end）-->

<body class="whitebg home-menu-body">
	<div class="ef-menu-wrapper">
		<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega" role="navigation">
		<div class="navbar-header">
			<div class="logo">
				<!--<i class="icon icon-logo"></i>
                    -->
				导航
			</div>
		</div>
		<div class="navbar-container container-fluid">
			<div class="collapse navbar-collapse navbar-collapse-toolbar"
				id="site-navbar-collapse">
				<ul class="nav navbar-toolbar">
					<li class="hidden-float" id="toggleMenubar"><a
						data-toggle="menubar" href="#" role="button"> <span
							class="sr-only">左侧菜单</span> <span class="menubar-bar"></span>
					</a></li>
					<li class="hidden-float" id="toggleFullscreen"><a
						class="icon icon-fullscreen" data-toggle="fullscreen" href="#"
						role="button"> <span class="sr-only">全屏</span> <span
							class="fullscreen-bar"></span>
					</a></li>

				</ul>
				<ul class="nav navbar-toolbar navbar-right navbar-toolbar-right">

					<li class="dropdown"><a class="navbar-avatar dropdown-toggle"
						data-toggle="dropdown" href="#" aria-expanded="false"
						data-animation="scale-up" role="button"> <span
							class="avatar avatar-online"> <img
								src="images/temp/user-default.png" alt="...">
						</span>
					</a>
						<ul class="dropdown-menu" role="menu">
							<li role="presentation"><a href="javascript:void(0)"
								role="menuitem"><i class="icon su-user" aria-hidden="true"></i>
									<%=name %></a></li>
						</ul></li>
				</ul>
			</div>
			<div class="collapse navbar-search-overlap" id="site-navbar-search">
				<form role="search">
					<div class="form-group">
						<div class="input-search">
							<i class="input-search-icon wb-search" aria-hidden="true"></i> <input
								type="text" class="form-control" name="site-search"
								placeholder="Search...">
							<button type="button" class="input-search-close icon wb-close"
								data-target="#site-navbar-search" data-toggle="collapse"
								aria-label="Close"></button>
						</div>
					</div>
				</form>
			</div>
			<!-- End Site Navbar Seach -->
		</div>
		</nav>
		<!--左侧菜单-->
		<div class="site-menubar">
			<div class="site-menubar-body">
				<div>
					<div>
					<ul class="site-menu">
						<c:forEach items="${baseMenu}" var="baseMenus" >
								<c:if test="${baseMenus.type=='g1'}">
								<li class="site-menu-item has-sub">
                                	<a href="javascript:void(0)" data-slug="layout">
                                    	<i class="site-menu-icon icon-font icons-lf-${baseMenus.orders}" aria-hidden="true"></i>
                                    	<span class="site-menu-title">${baseMenus.menuname}</span>
                                    	<span class="site-menu-arrow"></span>
                                	</a>
                                	<ul class="site-menu-sub">
                                    	<li class="site-menu-sub-title"><h3>${baseMenus.menuname}</h3></li>
                                    	<c:forEach items="${baseMenu}" var="baseMenu2" >
                                    		<c:if test="${baseMenu2.pid==baseMenus.id}">
                                    				<c:if test="${baseMenu2.url==null||baseMenu2.url==''}">
                                    			<li class="site-menu-item has-sub">
                                    				 <a href="javascript:void(0)" data-slug="">
                                            			<i class="site-menu-icon " aria-hidden="true"></i>
                                            			<span class="site-menu-title">${baseMenu2.menuname}</span>
                                            			<span class="site-menu-arrow"></span>
                                        			</a>
                                        			</c:if>
                                        			<c:if test="${baseMenu2.url!=null&&baseMenu2.url!=''}">
                                        		<li class="site-menu-item">
                                        			<a class="animsition-link J_menuItem" menuIndex="${baseMenu2.id}" href="${baseMenu2.url}">
                                            			<i class="site-menu-icon " aria-hidden="true"></i>
                                            			<span class="site-menu-title">${baseMenu2.menuname}</span>
                                        			</a>
                                        			</c:if>
                                					<ul class="site-menu-sub">
                                    				<li class="site-menu-sub-title"><h3>${baseMenu2.menuname}</h3></li>
                                    				<c:forEach items="${baseMenu}" var="baseMenu3" >
                                    					<c:if test="${baseMenu3.pid==baseMenu2.id}">
                                    						<li class="site-menu-item">
                                        						<a class="animsition-link J_menuItem" 
                                        						menuIndex="${baseMenu3.id}" 
                                        						href="<%=request.getContextPath() %>${baseMenu3.url}?requestName=${baseMenu3.requestName}&responsePath=${baseMenu3.responsePath}">
                                            						<i class="site-menu-icon " aria-hidden="true"></i>
                                            						<span class="site-menu-title">${baseMenu3.menuname}</span>
                                        						</a>
                                    						</li>
                                    					</c:if>
                                    					</c:forEach>
                                    				</ul>
                                    			</c:if>
                                    		</c:forEach>
                                    	</ul>
                                    </li>
                                   </c:if>
                         </c:forEach>
                         </ul>
					</div>
				</div>
			</div>


		</div>


		<!--end左侧菜单-->
		<!-- Page -->
		<div class="page">
			<!--
            <div class="page-content padding-30 container-fluid">

                内容

            </div>
-->
			<div class="content-tabs">
				<button class="roll-nav roll-left J_tabLeft">
					<i class="fa fa-backward"></i>
				</button>
				<nav class="page-tabs J_menuTabs">
				<div class="page-tabs-content">
					<c:forEach items="${baseMenu}" var="baseMenumm1" >
					<c:if test="${baseMenumm1.type=='m1'}">
					<a href="javascript:;" class="active J_menuTab"
						data-id="<%=request.getContextPath() %>${baseMenumm1.url}">首页</a>
					</c:if>
					</c:forEach>
					
				</div>
				</nav>
				<button class="roll-nav roll-right J_tabRight">
					<i class="fa fa-forward"></i>
				</button>
				<div class="btn-group roll-nav roll-right">
					<button class="dropdown J_tabClose" data-toggle="dropdown">
						关闭操作<span class="caret"></span>

					</button>
					<ul role="menu" class="dropdown-menu dropdown-menu-right">
						<li class="J_tabShowActive"><a>定位当前选项卡</a></li>
						<li class="divider"></li>  
						<li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
						<li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
					</ul>
				</div>
				<a href="<%=request.getContextPath() %>/login.html"
					class="roll-nav roll-right J_tabExit"><i
					class="fa fa fa-sign-out"></i> 退出</a>
			</div>
			<div class="J_mainContent" id="content-main">
			<c:forEach items="${baseMenu}" var="baseMenumm1" >
				<c:if test="${baseMenumm1.type=='m1'}">
				<iframe class="J_iframe" name="iframe0" width="100%" height="100%"
					src="<%=request.getContextPath() %>${baseMenumm1.url}"
					frameborder="0"
					data-id="<%=request.getContextPath() %>${baseMenumm1.url}"
					seamless></iframe>
				</c:if>
			</c:forEach>
			</div>
		</div>
		<!-- End Page -->
	</div>
	<!-- Bootstrap core JavaScript  -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="other/jquery/jquery.min.js"></script>
	<script src="other/bootstrap3/js/bootstrap.min.js"></script>
	<script src="other/jquery/jquery/jquery.nicescroll.min.js"></script>

	<!--菜单框架引用的js-->
	<script src="js/home-menu/vendor/asscroll/jquery-asScroll.js"></script>
	<script src="js/home-menu/vendor/asscrollable/jquery.asScrollable.all.js"></script>
	<script src="js/home-menu/vendor/ashoverscroll/jquery-asHoverScroll.js"></script>
	<script src="js/home-menu/vendor/screenfull/screenfull.js"></script>
	<script src="js/home-menu/core.js"></script>
	<script src="js/home-menu/site.js"></script>
	<script src="js/home-menu/menu.js"></script>
	<script src="js/home-menu/menubar.js"></script>
	<script src="js/home-menu/sidebar.js"></script>
	<script src="js/home-menu/contabs.js" type="text/javascript"></script>
	<script>
        $(document).ready(function ($) {
            Site.run();
        });
    </script>
	<!--end 菜单框架引用的js-->
</body>
</html>